package single;

/**
 * 饿汉单例模式
 */
public class Singlton1 {
    private final static Singlton1 s = new Singlton1();
    private Singlton1(){}

    public static Singlton1 getInstance(){
        return s;
    }
}
